<template>
    <div class="container">
        <p class="oneP">家居家电行业营销优势</p>
        <p class="twoP" style="font-weight:100">基于大数据分析结果，根据目标人群网络行为特征，由核心到外层，层层锁定价值流量</p>
        <button class="oneButton" @click="toCreateAIPlan">一键生成方案</button>
        <ul class="ulOne">
            <li v-for="(item,index) in arr1" :key="index">
                <div class="ulTwo" @mouseover="show(index)">
                    <img :src="item[0]">
                    <p>{{item[1]}}</p>
                    <p>{{item[2]}}</p>
                    <p>{{item[3]}}</p>
                </div>
                <div class="ulThree" v-if="redIndex==index">
                    <div><img :src="item[4]"></div>
                    <img src="../../assets/img/二类电商/免费咨询/circle.png">          
                </div>
            </li>
        </ul>
        <mask-toast v-if="showMaskToast" @closeMask="closeMask"></mask-toast>
    </div>
</template>
<script>
require("../../assets/css/p.css")
const img1 = require("../../assets/img/家居家电/家居传播策略/1.png")
const img2 = require("../../assets/img/家居家电/家居传播策略/2.png")
const img3 = require("../../assets/img/家居家电/家居传播策略/3.png")
const img4 = require("../../assets/img/家居家电/家居传播策略/4.png")
const img5 = require("../../assets/img/二类电商/立即注册/05.png")
const img6 = require("../../assets/img/家居家电/家居传播策略/1-1.png")
const img7 = require("../../assets/img/二类电商/立即注册/10.png")
const img8 = require("../../assets/img/家居家电/家居传播策略/2-2.png")
const img9 = require("../../assets/img/家居家电/家居传播策略/3-3.png")
const img10 = require("../../assets/img/家居家电/家居传播策略/4-4.png")
import maskToast from '../upgrade/upgradeToast'
export default {
    data(){
        return {
            arr1:[
                [img1,"海量KOL、大号","媒体资源丰富","",img6],
                [img2,"覆盖超百亿流量","精准定位目标用户","",img8],
                [img3,"智能数字化整合投放","","",img9],
                [img4,"结合市场动态、行业等","进行文案编辑","",img10],
            ],
            redIndex : -1,
            debug: true,
            showMaskToast: false
        }
    },
    methods: {
        show(index) {
            this.redIndex = index
        },
        toCreateAIPlan(){
            if(this.debug){
                this.showMaskToast = true
                return
            }
            this.$router.push({path:'/createAIPlan'});
        },
        closeMask(data){
            this.showMaskToast = data
        }
    },
    components: {
        maskToast
    }
}
</script>
<style scoped>
.container{
    width:1200px;
    margin:0 auto;
    text-align: center;
    margin-top: 80px;
    overflow: hidden;
    /* margin-bottom:50px; */
    margin-bottom:80px;
}
.oneButton{
    width: 140px;
    box-shadow: 0px 4px 19px #ed9191;
}
.ulOne{
    overflow: hidden;
    margin-top: 60px;
    padding:10px;
}
.ulOne p{
    font-size: 16px;
}
.ulOne>li {
    /* 216*5 1080 120 */
  width: 230px;
  float: left;
  height: 310px;
  text-align: center;
  position: relative;
  margin-left: 65px;
 box-shadow: 2px 2px 16px #ebebeb;

}
.ulOne>li:first-child{
    margin-left: 0px;
}
.ulTwo {
  width: 100%;
  height:310px;
  text-align: center;
  background: url("../../assets/img/家居家电/家居传播策略/57.png") center;
}
.ulTwo>img{
    margin-top: 60px;
}
.ulTwo>p:nth-child(2){
    margin-top: 60px;
}
.ulTwo>p:nth-child(3),.ulTwo>p:nth-child(4),.ulTwo>p:nth-child(5){
    margin-top: 10px;
}
.ulThree {
  width: 100%;
  height:310px;
  /* background: url("../../assets/img/家居家电/家居传播策略/58.png") center; */
  border:1px solid #ee4041;
  position: absolute;
  top: -1px;
  left: 0;
  text-align: center;
}
.ulThree>div>img{
    margin-top: 60px;
}
.ulThree>img:nth-child(2){
    margin-top: 30px;
}
.ulThree>p:nth-child(3){
    margin-top: 25px;
} 
.ulThree>p:nth-child(4),.ulThree>p:nth-child(5),.ulThree>p:nth-child(6){
    margin-top: 10px;
}
</style>